package io.renren.jvmtest;

import java.util.ArrayList;
import java.util.List;

/**
 * -Xmx100m -Xms100m -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -Xloggc:/gc.log
 * -XX: +UseConcMarkSweepGC CMS
 */
public class HeapOom {
    byte[] b = new byte[1024 * 100];

    public static void main(String[] args) throws InterruptedException {
        List<HeapOom> all = new ArrayList<>();
        while (true) {
            all.add(new HeapOom());
            Thread.sleep(10);
        }
    }
}
